//引入路由
import VueRouter from 'vue-router'

//y引入组件

import index from '../components/Index.vue'
import newsList from '../components/news/News-list.vue'
import newsInfo from '../components/news/NewsInfo.vue'
import browseGoods from '../components/goods/Browsegoods.vue'
import shareInfo from '../components/share/ShareInfo.vue'

import shop from '../components/Shopping.vue'
import vip from '../components/Vip.vue'
import search from '../components/search.vue'
import tt from '../tt.vue'
export default new VueRouter({
    routes:[
        {path:"/",redirect:'/index'},
        {path:"/shop",component:shop},
        {path:"/vip",component:vip},
        {path:"/search",component:search},
        {path:"/index",component:index},
        {path:"/newsList",component:newsList},
        {path:"/newsInfo",component:newsInfo},
        {path:"/browseGoods",component:browseGoods},//浏览商品
        {path:"/shareInfo",component:shareInfo},//浏览商品

    ],
    linkActiveClass:'mui-active'
})